package com.example.mq.consumer;

import com.example.mq.config.RabbitConfig;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


/**
 * @auth 贾枣阳
 * @date 2021/2/3 10:33
 */
@Component
@RabbitListener(queues = "FOURTH_QUEUE")
public class FourthConsumer {
    @RabbitHandler
    public void process(String msg) {

        System.out.println("消费者四收到消息："+msg);
    }
}
